import request from '@/utils/request'

// 获取收藏
export const getCollect = () => {
  return request.get('/user/favorites')
}
// 获取轮播图
export const getSwiper = () => {
  return request.get('/home/swiper')
}
// 获取租房小组
export const getRentGroup = () => {
  return request.get('/home/groups?area=AREA%7C88cff55c-aaa4-e2e0')
}
// 发布租房信息
export const publishRent = () => {
  return request.get('/houses/params')
}
// 获取已发布房源列表
export const getRentList = () => {
  return request.get('/user/houses')
}
// 获取城市列表
export const getCityList = () => {
  return request.get('/area/city?level=1')
}
// 获取热门城市
export const getHotCity = () => {
  return request.get('/area/hot')
}
// 添加收藏
export const updateCollect = (id) => {
  return request.post('/user/favorites', id)
}
